echo 'Matando cliente de dhcp... si es que estuviera arriba'
pkill dhc*
ifconfig eth0 down
echo 'Interfaces Router H203'


echo 'eth0  red A'
ifconfig eth0 10.26.29.34 netmask 255.255.255.240

echo 'eth0:1  red B '
ifconfig eth0:1	10.31.25.194 netmask 255.255.255.224

echo 'eth0:2 red C '
ifconfig eth0:2	192.168.56.3 netmask 255.255.255.0
 
echo 'Asignando rutas'
#RED A
echo 'Red A directamente conectada'
#route add -net 10.26.29.32 netmask 255.255.255.240 gateway 10.26.29.2 metric 1
#route add -net 10.26.29.32 netmask 255.255.255.240 gateway 172.51.5.202 metric 10

#RED B
echo 'Red B directamente conectada'
#route add -net 10.31.25.192 netmask 255.255.255.224 gateway 10.26.29.2 metric 1
#route add -net 10.31.25.192 netmask 255.255.255.224 gateway 172.51.5.202 metric 10

#RED C
echo 'Red C directamente conectada'
#route add -net 192.168.56.0 netmask 255.255.255.0 gateway 10.26.29.34 metric 1
#route add -net 192.168.56.0 netmask 255.255.255.0 gateway 10.31.25.194 metric 10

#RED D
route add -net 10.64.73.0 netmask 255.255.255.0 gateway 192.168.56.5 metric 1
#route add -net 10.64.73.0 netmask 255.255.255.0 gateway 10.31.25.194 metric 10

#RED F
route add -net 10.26.29.56 netmask 255.255.255.252 gateway 192.168.56.5 metric 1
#route add -net 10.26.29.56 netmask 255.255.255.252 gateway 10.31.25.194 metric 10

#RED G
route add -net 10.26.29.128 netmask 255.255.255.128 gateway 192.168.56.5 metric 1
#route add -net 10.26.29.128 netmask 255.255.255.252 gateway 10.31.25.194 metric 10

#RED H
route add -net 10.26.29.60 netmask 255.255.255.252 gateway 192.168.56.5 metric 1
#route add -net 10.26.29.60 netmask 255.255.255.252 gateway 10.31.25.194 metric 10

#RED I
route add -net 10.31.25.0 netmask 255.255.255.128 gateway  192.168.56.5 metric 1
#route add -net 10.31.25.0 netmask 255.255.255.128 gateway  10.31.25.194 metric 10

#RED L
route add -net 10.31.25.224 netmask 255.255.255.224 gateway 192.168.56.5 metric 1
#route add -net 10.31.25.224 netmask 255.255.255.224 gateway 10.31.25.194 metric 10

#RED M
route add -net 10.26.29.0 netmask 255.255.255.224 gateway 192.168.56.5 metric 1
#route add -net 10.26.29.0 netmask 255.255.255.224 gateway 10.31.25.194 metric 10

#RED O
route add -net 10.86.5.0 netmask 255.255.255.0 gateway 192.168.56.5 metric 1
#route add -net 10.86.5.0 netmask 255.255.255.0 gateway 10.31.25.194 metric 10
